﻿//-----------------------------------------------------------------------
// <copyright file="NannyDiaryFactory.cs" company="Mulala">
//     Copyright Mulala. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace Mulala.Cavan.Domain.MainBoundedContext.NannyModule
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    public static class NannyDiaryFactory
    {
        public static NannyDiary CreateNannyDiary(
                                    Nanny nanny,
                                    string title,
                                    string content,
                                    int viewTotal,
                                    NannyIdentifier.DiaryStatus diaryStatus,
                                    DateTime editTime,
                                    string editUser)
        {
            NannyDiary nannyDiary = new NannyDiary();
            nannyDiary.Content = content;
            nannyDiary.EditTime = editTime;
            nannyDiary.EditUser = editUser;
            nannyDiary.Nanny = nanny;
            nannyDiary.Title = title;
            nannyDiary.ViewTotal = viewTotal;
            nannyDiary.DiaryStatus = diaryStatus;
            nannyDiary.CreateTime = DateTime.Now;

            return nannyDiary;
        }
    }
}
